package com.tzy.note.base.util;

import org.apache.commons.io.FileUtils;

import java.io.File;
import java.io.IOException;
import java.net.URL;

/**
 * 下载器
 */
public class Downloader {
    public static void download(String url,String pathFileName){
        try {
            FileUtils.copyURLToFile(new URL(url),new File(pathFileName));
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
